import request from '@/utils/request'

export function fetchActivityList(query) {
  return request({
    url: '/activity/list',
    method: 'get',
    params: query
  })
}
export function fetchActivityDetail(id) {
  return request({
    url: '/activity/detail',
    method: 'get',
    params: { id }
  })
}

export function addActivityBasic(data) {
  return request({
    url: '/activity/insert',
    method: 'post',
    data
  })
}
export function addActivityParticipant(data) {
  return request({
    url: '/update/participant',
    method: 'post',
    data
  })
}
export function deleteActivity(data) {
  return request({
    url: '/activity/delete',
    method: 'post',
    data
  })
}
